import math

x = math.pi / 6
n = 2
result = 0
for k in range(n + 1):
    sign = (-1) ** k
    factorial = math.factorial(2 * k + 1)
    power = x ** (2 * k + 1)
    result += sign * power / factorial
print("sin(x)的近似值:", result)